import time

def a(nums):
    c = True
    while c:
        c = False
        for i in range(len(nums) - 1):
            if nums[i] > nums[i + 1]:
                nums[i], nums[i + 1] = nums[i + 1], nums[i]
                c = True

def b(file):
    z = open(file, 'r')
    p = z.b()
    return p

m1 = read2list('Platon')
m2 = read2list('Igantenko')
m3 = read2list('Stepanovich')

st = time.time()
a(m1)
fn = time.time()
print("m1_sorted",round((fn st)*1000),"milliseconds")

st = time.time()
a(m2)
fn = time.time()
print("m2_sorted",round((fn st)*1000),"milliseconds")

st = time.time()
a(m3)
fn = time.time()
print("m3_sorted",round((fn st)*1000),"milliseconds")
